package com.example.yoho.mvp.view.activity;


import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.webkit.WebView;

import com.example.yoho.R;
import com.example.yoho.domain.Domain_Url;

public class AdveritActivity extends AppCompatActivity {

    private WebView mewebviews;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_adverit);
        initView();
    }

    private void initView() {
        mewebviews = (WebView) findViewById(R.id.mewebviews);
        Intent intent = getIntent();
        String url = intent.getStringExtra("url");
        Log.i("ysk", "initView: "+url);
        mewebviews.loadUrl(url);
        mewebviews.canGoForward();
    }
}
